<?php


namespace app\common\model\xilumarket;


use think\Model;

class OrderProduct extends Model
{
    protected $name = 'xilumarket_order_product';

    #售后状态
    const REFUND_STATUS_CANCEL   = '-2';  // 取消
    const REFUND_STATUS_REFUSE   = '-1';  // 拒绝
    const REFUND_STATUS_APPLY    = '0';    //用户申请
    const REFUND_STATUS_NOOPER   = '1';   //同意申请
    const REFUND_STATUS_FREIGHT  = '2';   //物流提交，等待退款
    const REFUND_STATUS_OK       = '3';   //退款成功
    const REFUND_STATUS_FINISH   = '4';   //售后完成


    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = false;

    protected $append = [

    ];

}